class BootStrap {

     def init = { servletContext ->
         QuizDefinition iqQuizDef = new QuizDefinition(name:'IQ', description:'Test for intelligence quotient').save()
         new QuizDefinition(name:'MBTI',    description:'Myers Briggs Type Indicator').save()
         new QuizDefinition(name:'Weekend', description:'What to do this weekend').save()

         new QuestionDefinition(content:'how much wood could a woodchuck chuck?', quiz: iqQuizDef).save()
     }
     def destroy = {
     }
} 
